package com.baofu.paycore.service.facade.model.transfer;

import com.baofu.paycore.service.facade.model.PayBaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;

/**
 * 转账请求
 *
 * User: LZQ Date: 2016/05/19  Version: 1.0
 */
@ToString(callSuper = true)
@Getter
@Setter
public class TransferDTO extends PayBaseDTO {

    /**
     * 事件号
     */
    private String eventNo;

    /**
     * 业务收费金额
     */
    private Long bizChargeAmt;

    /**
     * 收费标识
     * FlagEnum:
     *          TRUE: 手续费收取交易单
     *          FALSE: 正常转账交易单
     */
    @NotBlank(message = "收费标识能为空")
    private String feeFlag;

    /**
     * 转入方
     */
    @Valid
    private TransferFundDTO transferInDTO;

    /**
     * 转出方
     */
    @Valid
    private TransferFundDTO transferOutDTO;
}
